﻿using CK.Sprite.Framework;
using Dapper.Contrib.Extensions;
using JetBrains.Annotations;
using System;
using System.Collections.Generic;
using System.Security.Cryptography;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading.Tasks;

namespace CK.Sprite.Form.Core
{
    public interface ISpriteCommonRepository : IBaseSpriteRepository<SpriteObject>
    {
        /// <summary>
        /// 通用List查询
        /// </summary>
        /// <typeparam name="T">返回实体</typeparam>
        /// <param name="tableName">表名称</param>
        /// <param name="queryWhereModels">查询条件</param>
        /// <param name="fields">指定查询字段</param>
        /// <returns></returns>
        Task<List<T>> GetCommonList<T>(string tableName, List<QueryWhereModel> queryWhereModels, string fields = default);
    }
}
